// vim: filetype=cpp

%TEX2D image = pallot2DOT3

%VERTEX_SHADER

varying vec2 vTexCoord;

void main (void)
{
    vec4 Position;
    Position = gl_ModelViewMatrix * gl_Vertex;
    gl_Position = gl_ProjectionMatrix * Position;
   
    vTexCoord = gl_MultiTexCoord0.st;
}

%FRAGMENT_SHADER

uniform sampler2D image;

varying vec2 vTexCoord;

void main (void)
{
    vec4 col = texture2D(image, vTexCoord);
    gl_FragColor = vec4(vec3(1,1,1)-col.rgb, col.a);
}

